﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThuVien.DTO;
using QuanLyThuVien.DAO;
using System.Data;

namespace QuanLyThuVien.BUS
{
    class ChiTietPhieuMuonBUS
    {
        public static void ChiTietMuon(ChiTietPhieuMuonDTO x)
        {
            ChiTietPhieuMuonDAO.ChiTietMuon(x);
        }
        public static DataTable LayMaCTPM(int MaDG)
        {
            return ChiTietPhieuMuonDAO.LayMaCTPM(MaDG);
        }
        public static int LayMaCTPMuon(int MaDG,int masach)
        {
            return ChiTietPhieuMuonDAO.LayMaCTPMuon(MaDG,masach);
        }

        // them vo _truyen
        public static DataTable DS_SachMuon(int madg)
        {
            return ChiTietPhieuMuonDAO.DS_SachMuon(madg);
        }

        //lay ra danh sach cac cuon sach doc gia muon ma chua tra
        public static DataTable DS_SachMuonChuaTra(int madg)
        {
            return ChiTietPhieuMuonDAO.DS_SachMuonChuaTra(madg);
        }

        public static DataTable DS_SachMuonChuaTra1(int madg)
        {
            return ChiTietPhieuMuonDAO.DS_SachMuonChuaTra1(madg);
        }

        // cap nhat tinh trang tra
        public static void CapNhat_TinhTrangTra(int ma)
        {
            ChiTietPhieuMuonDAO.CapNhat_TinhTrangTra(ma);
        }

        //lay tinh trang tra
        public static int TT_Tra(int ma)
        {
            return ChiTietPhieuMuonDAO.TT_Tra(ma);
        }
    }

}
